﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CoreProject.Model;

namespace CoreProject.IRepository
{
    public interface IGoodsRepository:IBaseRepository<Good>
    {
        Task<(List<Good> list, int count)> GetGoodsBypage(string name, int page, int size);
        Task<bool> ShangJia(int gid);
        Task<bool> XiaJia(int gid);
        Task<bool> UpdateGood(Good good);
        Task<bool> DeleteGoods(int[] ids);
        Task<bool> DeleteGood(int id);
    }
}
